<div class="alert fade in" style="background-color: yellow; color: #000">
	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	<strong>Time reference must be Zulu Time.</strong>
</div>

<p><i class="icon-ok"></i><?=$t_campos_obrigatorios?></p>

<div id="container">
    
    <table class="table table-striped table-bordered table-hover">

        <tr>
            <th>Nation*</th>
            <th>Headquarter*</th>
            <th>Type of Airplane*</th>
            <th width="50">Tail Number *</th>
            <th width="50">Quantity (Liters)*</th>
            <th>Fuel Type*</th>
            <th>Request Time*</th>
            <th>Appron (Place)*</th>
            <th>Time of Dep.</th>
        </tr>

        <?php 
        if (isset($_GET['add'])){ $_GET['num'] = $_GET['num']+$_GET['add']; } else { $_GET['num'] = 1; }
        for ($i=0;$i<$_GET['num'];$i++){ 
        ?>

        <tr>
            <td>
            <?php 
            $estilo = "style='width:150px;'";
            include "mod/combo/pai_id_array.php"; 
            ?></td>
            <td><?php include "mod/combo/sed_id_array.php"; ?></td>
            <td>
                <?php 
                $estilo = "style='width:200px;'";
                include "mod/combo/aer_id_array.php"; 
                ?>
            </td>
            <td><input type="text" name="log_num[]" class="span2" value="<?php echo $log_num[$i];?>"></td>
            <td><input type="text" name="log_qtd[]" class="span1" value="<?php echo $log_qtd[$i];?>" /></td>
            <td><?php include "mod/combo/log_comb_array.php"; ?></td>
            <td>
                <input type="text" name="log_dataabast[]" value="<?php echo $log_dataabast[$i];?>" class="span2" onfocus="showCalendarControl(this);" value="<?= date("d/m/Y"); ?>" placeholder="Date of refuelling" />
                <input type="text" name="log_horaabast[]" value="<?php echo $log_horaabast[$i];?>" class="span1 hora" placeholder="HH:MM" />
            </td>
            <td>
				<select name="log_local[]">
	            	<option value="ALFA LINE">ALFA LINE</option>
	            	<option value="BRAVO LINE">BRAVO LINE</option>
	            	<option value="DELTA LINE">DELTA LINE</option>
	            	<option value="INDIA LINE">INDIA LINE</option>
	            	<option value="RUNWAY 30">RUNWAY 30</option>
	            	<option value="FOXTROT LINE">FOXTROT LINE</option>
	            	<option value="OTHER">OTHER</option>
           		</select>
            </td>
            <td><input type="text" name="log_time_dep[]" placeholder="HH:MM" value="<?php echo $log_local[$i];?>" class="span1 hora"/></td>
        </tr>
        <tr>
            <td colspan="8">
                <textarea name="log_msg[]" style="width: 99% !important" placeholder="Comments"><?php echo $log_msg[$i];?></textarea>
            </td>
        </tr>

    <?php } ?>

    </table>
    
    <p><a href="?pag=logisticaabastecimento_inc&add=1&num=<?php echo $_GET['num'];?>" target="_self" class="btn"><i class="icon-plus"></i> Add item</a></p>
    
</div>
